package com.ruoyi.bizsys.domain;

import com.ruoyi.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 通讯录授权对象 apply_contacts
 *
 * @author african-loan
 * @date 2021-12-30
 */

@Data
public class ApplyContacts extends BaseEntity {
    private static final long serialVersionUID = 1L;


    public ApplyContacts(ApplyContacts oldValue, ApplyContacts newValue) {
        this.callName = oldValue.getCallName();
        this.phone = oldValue.getPhone();
        this.applyNo = oldValue.getApplyNo()+","+newValue.getApplyNo();
        this.custNo = oldValue.getCustNo();
    }

    public ApplyContacts() {
    }

    /**
     * 操作类别
     */

    @Excel(name = "${comment}", readConverterExp = "操作类别")
    private String actionType;


    /**
     * 序号
     */

    @Excel(name = "${comment}", readConverterExp = "序号")
    @TableId(type = IdType.AUTO)
    private Long id;


    /**
     * 申请编号
     */

    @Excel(name = "申请编号")
    private String applyNo;


    /**
     * 客户编号
     */

    @Excel(name = "客户编号")
    private String custNo;


    /**
     * 联系人称呼
     */

    @Excel(name = "联系人称呼")
    private String callName;


    /**
     * 区号
     */

    @Excel(name = "区号")
    private String countryCode;


    /**
     * 手机号
     */

    @Excel(name = "手机号")
    private String phone;


    /**
     * 状态
     */

    @Excel(name = "状态")
    private String state;


    /**
     * 批次号
     */

    @Excel(name = "批次号")
    private String batchNo;


    /**
     * 客户等级
     */

    @Excel(name = "客户等级")
    private String custLevel;

    private Integer isExclude;


    /**
     * 创建时间
     */

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "客户等级", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createTime;
}